#include "platfromstatusinfo.h"
#include "remotedef.h"
#include <QVariant>
#include <QDebug>

PlatfromStatusInfo::PlatfromStatusInfo()
    :BaseResp()
{
    platform_status = PLATFORM_STATUS_MAX;
}

int PlatfromStatusInfo::getPlatformStatus() const
{
    return platform_status;
}

void PlatfromStatusInfo::unserialize(QString json)
{
    BaseResp::unserialize(json);
    if (m_json.isValid())
    {
        platform_status = (int)m_json.value(KEY_PLATFORM_STATUS).toDouble();
    }
}

